﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using KP_CommonLibrary.KP_CommonControls;
using KP_CommonLibrary.KP_Interface;

namespace KP_CommonLibrary.KP_CoreUI
{
    public partial class KP_SearchForm : KP_FormBase01
    {
        public KP_SearchForm()
        {
            InitializeComponent();
            ApplyMode = ApplyMode.String;
            

        }

        void KP_SearchForm_Disposed(object sender, EventArgs e)
        {
            
        }
        protected IKPDataForm DataForm { get; set; }
        public ApplyMode ApplyMode { get; set; }
        public virtual string SearchCondition { get; set; }
        public virtual Dictionary<string, object> ParameterCondition { get; set; }
        public virtual object Data { get; set; }
        public virtual void Accept()
        {
        }
        private void btnAccept_Click(object sender, EventArgs e)
        {
            Accept();
            DialogResult = DialogResult.OK;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
        }

        private void KP_SearchForm_Load(object sender, EventArgs e)
        {

        }
    }
    public enum ApplyMode
    {
        String,
        Dictionary,
        Data
    }
}
